<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class UserModel extends Model
{
    
    /**
     * 与模型关联的数据表。
     *
     * @var string
     */
    protected $table = 'user';
    
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'usertype',
        'nickname',
        'avatar',
        'phone',
        'password',
        'messagecount',
        'more',
        'last_login_time',
        'status',
        'statustime',
        'updatetime'
    ];
    
    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password',
    ];
    
    /**
     * 指定是否模型应该被戳记时间。
     *
     * @var bool
     */
    public $timestamps = false;
    
    
}
